// svg sprites合并svg图标为一个文件.见<https://medium.com/geekculture/how-to-implement-svg-sprites-in-react-14db2ca39595>
import Icons from './icons.svg';
export const Icon = ({ name, color = '#333', size = 24, ...rest }: { name: string; color?: string; size?: number; [key: string]: any }) => {
    return (
        <svg viewBox="0 0 24 24" fill={color} {...rest} width={size}>
            <use href={Icons + `#${name}`} />
        </svg>
    )
}
export default Icon;